FROM daocloud.io/library/tomcat:8.5.57-jdk8
WORKDIR /usr/local/tomcat/webapps
RUN mkdir ROOT
COPY cicd-1.0-SNAPSHOT.war /usr/local/tomcat/webapps/ROOT/cicd.war
WORKDIR /usr/local/tomcat/webapps/ROOT
RUN jar -xvf cicd.war


# docker build -t cicd:v1.0 ./
# docker run -d -p 8080:8080 --name cicd cicd:v1.0